# -*- coding: utf-8 -*-
# !/usr/bin/env python

from flask import Flask
from config.config import DevConfig
from app.models import db
#from flask_cors import *

print("*"*20)
app = Flask(__name__)
#CORS(app, supports_credentials=True)
# CORS(app) # 允许请求跨域用

app.config.from_object(DevConfig)                       #从config.py读入配置,flask的配置，数据库的配置等
db.init_app(app)
#  这个import语句库放在这里, 防止views, models import发生循环import
from app import views

